#include<iostream>
using namespace std;
int main(int argc,char * argv[],char* env[])
{
  int i = 0;
  cout<<argv[0]<<"begin running"<<endl;
  cout<<"这是命令行参数输出"<<endl;
  for(i = 0;argv[i];i++)
  {
    cout<<i<<":"<<argv[i]<<endl;
  }
  cout<<"这是环境变量参数输出"<<endl;
  for(i = 0;env[i];i++)
  {
    cout<<i<<":"<<env[i]<<endl;
  }
  cout<<argv[0]<<"end running"<<endl;
  return 0;
}
